import {
	request
} from '@/utils/request.js'

/**
 * 获取封面图数据
 */
export const apiGetBanner = () => {
	return request({
		url: `/homeBanner`
	})
}

/**
 * 获取随机壁纸
 */
export const apiGetDayRandom = () => {
	return request({
		url: '/randomWall'
	})
}

/**
 * 获取壁纸资讯公告列表
 */
export const apiGetNotice = (data = {}) => {
	return request({
		url: '/wallNewsList',
		data
	})
}

/**
 * 获取壁纸分类
 */
export const apiGetClassify = (data = {}) => {
	return request({
		url: '/classify',
		data
	})
}

/**
 * 分类中壁纸列表（分类详情）
 */
export const apiGetWallist = (data = {}) => {
	return request({
		url: '/wallList',
		data
	})
}

/**
 * 用户下载壁纸查询
 */
export const apiGetUserWallist = (data = {}) => {
	return request({
		url: '/userWallList',
		data
	})
}

export const apiGetSetupScore = (data = {}) => {
	return request({
		url: '/setupScore',
		data
	})
}

/**
 * 下载图片
 */
export const apiWriteDownload = (data = {}) => {
	return request({
		url: '/downloadWall',
		data
	})
}

/**
 * 获取单张壁纸
 */
export const apiDetailWall = (data = {}) => {
	return request({
		url: '/detailWall',
		data
	})
}

/**
 * 获取用户信息
 */
export const apiUserInfo = (data = {}) => {
	return request({
		url: '/userInfo',
		data
	})
}

/**
 * 获取公告详情
 */
export const apiNoticeDetail = (data = {}) => {
	return request({
		url: '/wallNewsDetail',
		data
	})
}